package 数据结构.conllection;

/**
 * 每个LinkedList的节点都应该包含三个部份
 * @author huangzhi*/
public class Node {

    /**上一个节点*/
    Node previous;
    /**下一个节点*/
    Node next;
    /**元素数据*/
    Object element;

    public Node(Node previous, Node next, Object element) {
        this.previous = previous;
        this.next = next;
        this.element = element;
    }

    public Node(Object element) {
        this.element = element;
    }
}
